import { Prop, Schema, SchemaFactory } from '@nestjs/mongoose';
import { Document } from 'mongoose';
import RealTimeInfo from './RealTimeInfo';

export type ChargeCardOrderRealTimeInfoDocument = ChargeCardOrderRealTimeInfo & Document;


@Schema()
export class ChargeCardOrderRealTimeInfo extends Document<number> {
    @Prop(Number)
    _id : number;
    
    @Prop()
    lastData : RealTimeInfo;

    @Prop([RealTimeInfo])
    data : RealTimeInfo[];
}

export const ChargeCardOrderRealTimeInfoSchema = SchemaFactory.createForClass(ChargeCardOrderRealTimeInfo);